﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommandPattern
{
    public interface IExecuteCommand
    {
        void Read();
        void Write();
        void Save();
    }
    public class ExecuteCommand: IExecuteCommand
    {
        public void Read()
        {
            Console.WriteLine("ExecuteCommand Read");
        }
        public void Write()
        {
            Console.WriteLine("ExecuteCommand Write");
        }
        public void Save()
        {
            Console.WriteLine("ExecuteCommand Save");
        }
    }
    public class ExecuteCommand2 : IExecuteCommand
    {
        public void Read()
        {
            Console.WriteLine("ExecuteCommand2 Read");
        }
        public void Write()
        {
            Console.WriteLine("ExecuteCommand2 Write");
        }
        public void Save()
        {
            Console.WriteLine("ExecuteCommand2 Save");
        }
    }
}
